package com.cy.核心编程.stream.buffer;

import java.io.*;

public class test {
    public static void main(String[] args) throws Exception {
        //BufferedInputStream bis = new BufferedInputStream(new FileInputStream("a.txt"));

        BufferedReader br = new BufferedReader(new FileReader(new File("src/a.txt")));

        //System.out.println(br.readLine());
        //System.out.println(br.readLine());

        String str = "";
        while ((str = br.readLine()) != null) {
            System.out.println(str);
        }

        br.close();
    }
}
